import {
	request
} from "../../utils/request";
import {
	uploadFile
} from "../../utils/upload";

export function apiGetBlogDetails(id) {
	return request(`/api/blog/details/${id}`)
}

export function apiUploadBlogPicture(filePath) {
	return uploadFile("/api/upload/picture", filePath);
}

export function apiPublishBlog(data) {
	return request('/api/publish/blog', "POST", data)
}